package com.alex.service;

import java.util.List;
import java.util.Map;

import com.alex.DAO.IBoardDAO;
import com.alex.entity.Board;

public class BoardService implements IBoardService {
	private IBoardDAO boardDAO;
	
	public IBoardDAO getBoardDAO() {
		return boardDAO;
	}
	public void setBoardDAO(IBoardDAO boardDAO) {
		this.boardDAO = boardDAO;
	}
	public Map findBoard() throws Exception{
		return this.boardDAO.findBoard();
	}
	public Board findBoardByid(int boardid) throws Exception{
		return this.boardDAO.findBoardByid(boardid);
	}
	public void BoardSave(Board board) throws Exception{
		 this.boardDAO.BoardSave(board);
	}
	public void BoardUpdate(Board board) throws Exception{
		this.boardDAO.BoardUpdate(board);
	}
	public void BoardDelete(int boardid) throws Exception{
		this.boardDAO.BoardDelete(boardid);
	}
	public List findparentboard(){
		return this.boardDAO.findparentboard();
	}
	
}
